﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Worms3003
{
    public class Animations
    {
        #region atributos
        int width;
        int height;
        public int xCut;
        public int yCut;
        public int frameX;
        public int frameY;
        public int x;
        public int y;
        public int interval;
        public int totalFramesX;
        public int totalFramesY;
        Texture2D textura;
        public Vector2 vetor;
        Color color;
        float rotation;
        public SpriteEffects spriteEffects;
        int width_image;
        int height_image;
        public Vector2 velocidade;
        public bool pulando = false;
        
        #endregion

        public Vector2 positions
        {
            get { return vetor; }
            set { vetor = value; }
        }

        public Animations(Texture2D newTexture, int newWidtImage, int newHeightImage, int newX, int newY, int newWidth, int newHeight,
                          int newXCut, int newYCut, int newInterval, int newTotalFramesX,
                          int newTotalFramesY, float newRotation, Vector2 newSpeed, SpriteEffects newSpriteEffects, Color newColor)
        {
            /*textura da imagem, largura e altura da imagem respectivamente, posição x e y do corte na imagem, 
              altura e largura do corte da animação, tamanho do corte de x e y, valor do intervalo de tempo, 
              número total de frames nas pos x e y, rotação, velocidade, efeitos na imagem e cor*/

            #region construtor da classe
            textura = newTexture;
            x = newX;
            y = newY;
            width = newWidth;
            height = newHeight;
            xCut = newXCut;
            yCut = newYCut;
            interval = newInterval;
            totalFramesX = newTotalFramesX;
            totalFramesY = newTotalFramesY;
            color = newColor;
            rotation = newRotation;
            spriteEffects = newSpriteEffects;
            width_image = newWidtImage;
            height_image = newHeightImage;
            velocidade = newSpeed;
            #endregion
        }
    }
}
